{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>cms</span>
            <span class="icon-angle-right"></span>
            <span>管理栏目</span>
            <span class="icon-angle-right"></span>
            <span>系统模型</span>
            <span class="icon-angle-right"></span>
            <span>管理数据表</span>
            <span class="icon-angle-right"></span>
            <span>{$tbname}</span>
            <span class="icon-angle-right"></span>
            <span>管理系统模型</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <table class="m-table">
                <tr>
                    <th>
                        <div class="m-options cf">
                            <div class="m-opts fl"><a href="{:url('add', ['tid' => $tid, 'tbname' => $tbname])}" class="u-btn"><i class="icon-plus"></i>添加系统模型</a></div>
                        </div>
                    </th>
                </tr>
            </table>
            <form class="layui-form">
                <table class="m-table mt-10">
                    <tbody class="datas">
                        <tr>
                            <th width="5%">ID</th>
                            <th width="10%">标识</th>
                            <th width="15%">名称</th>
                            <th width="60%">备注</th>
                            <th width="10%">操作</th>
                        </tr>
                        {foreach name="data" item="v"}
                        <tr>
                            <td>{$v.id}</td>
                            <td>{$v.tbname}</td>
                            <td>{$v.name}</td>
                            <td>{$v.remark}</td>
                            <td class="m-opt"><a href="{:url('add', ['id' => $v.id, 'tid' => $tid, 'tbname' => $tbname])}" title="编辑"><i class="icon-pencil"></i></a><a href="javascript:;" title="删除" class="u-del" data-id="{$v.id}"><i class="icon-trash"></i></a></td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
            </form>
            {include file="public:page" /}
        </div>
    </div>
</div>
<input type="hidden" name="redirect_uri" value="{:url('index', ['tid' => $tid, 'tbname' => $tbname])}" />
{/block}
{block name="extrajs"}
{include file="laypage" /}
{/block}